package com.jingdianjichi.subject.application.controller;

import com.jingdianjichi.subject.infra.basic.service.SubjectCategoryService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * SubjectController 类
 *
 * @author 熊苏鹏1
 * @date 2025/1/24 22:37
 * @description 刷题controller
 */
@RestController
public class SubjectController {
    @Resource
    private SubjectCategoryService subjectCategoryService;

    @GetMapping("/test")
    public String test() {
        return subjectCategoryService.queryById(1L).getCategoryName();
    }
}
